package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.DirectMchntBaseInfo;
import cc.rengu.redp.bizimpl.upmp.domain.UpmpBMchntImageInfo;
import cc.rengu.redp.bizimpl.upmp.vo.ImageInfoVO;
import cc.rengu.redp.bizimpl.upmp.vo.OperationResult;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
* @author 刘玉亮.LL
*/
    public interface IDirectMchntBaseInfoService extends IService<DirectMchntBaseInfo> {

    IPage<DirectMchntBaseInfo> findByPage(QueryRequest request, DirectMchntBaseInfo entity);

    DirectMchntBaseInfo getByMchntCd(String mchntCd);

    IPage<Map<String, Object>> findExportDataByPage(QueryRequest request, DirectMchntBaseInfo entity) throws RedpException;

    @Transactional(value = "transactionManager")
    OperationResult saveData(String oprMenuId, String oprMenuName, DirectMchntBaseInfo entity, String webNextUrl, String flag) throws RedpException;

    List<ImageInfoVO> getmchntImageList(List<UpmpBMchntImageInfo> bMchntImageInfoList);
}
